# Test 1
add_executable(test_array_length_scalar
  01_test_array_length_scalar.c
)
target_link_libraries(test_array_length_scalar PRIVATE SimulationRuntimeC)
add_test(NAME test_array_length_scalar COMMAND test_array_length_scalar)

# Test 2
add_executable(test_array_length_vector
  02_test_array_length_vector.c
)
target_link_libraries(test_array_length_vector PRIVATE SimulationRuntimeC)
add_test(NAME test_array_length_vector COMMAND test_array_length_vector)

# Test 3
add_executable(test_array_length_matrix
  03_test_array_length_matrix.c
)
target_link_libraries(test_array_length_matrix PRIVATE SimulationRuntimeC)
add_test(NAME test_array_length_matrix COMMAND test_array_length_matrix)

# Test 4
add_executable(test_compute_var_index
  04_test_compute_var_index.c
)
target_link_libraries(test_compute_var_index PRIVATE SimulationRuntimeC)
add_test(NAME test_compute_var_index COMMAND test_compute_var_index)

# Test 5
add_executable(test_calc_index_matrix
  05_test_calc_index_matrix.c
)
target_link_libraries(test_calc_index_matrix PRIVATE SimulationRuntimeC)
add_test(NAME test_calc_index_matrix COMMAND test_calc_index_matrix)

# Test 6
add_executable(test_calc_index_tensor
  06_test_calc_index_tensor.c
)
target_link_libraries(test_calc_index_tensor PRIVATE SimulationRuntimeC)
add_test(NAME test_calc_index_tensor COMMAND test_calc_index_tensor)

add_custom_target(ctestsuite-simulation-arrayIndex-unit DEPENDS
  test_array_length_scalar
  test_array_length_vector
  test_array_length_matrix
  test_compute_var_index
  test_calc_index_matrix
  test_calc_index_tensor
)
